<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="link" required="true"%>
<%@ attribute name="pagerObj" required="true" type="com.yaodian100.core.common.entity.SimplePager"%>
<c:choose>
	<c:when test="${fn:indexOf(link,'?') == -1}">
			<c:set var="symbol" value="?"/>
	</c:when>
	<c:otherwise>
			<c:set var="symbol" value="&"/>
	</c:otherwise>
</c:choose>
<div class="page-change pft"> 	
<c:choose><c:when test="${pager.totalSize != 0}">
<p class="page-change">第${pager.currentPage+1}页，共${pager.pageSize}页
<c:choose><c:when test="${pager.currentPage==0}">
	<span class="a-no">&lt; 上一页</span> |
</c:when><c:otherwise>
	<a href="${link}${symbol}pager.currentPage=${pager.currentPage-1}" class="a-togo">&lt; 上一页</a> |
</c:otherwise></c:choose>
<c:forEach begin="${pager.startPage}" end="${pager.endPage}" var="currentPage">
<c:choose><c:when test="${pager.currentPage==currentPage-1}">
	<b>${currentPage}</b>
</c:when><c:otherwise>
	<a href="${link}${symbol}pager.currentPage=${currentPage-1}">${currentPage}</a>
</c:otherwise></c:choose>
</c:forEach>
<c:choose><c:when test="${pager.currentPage == pager.pageSize-1}">
	<span class="a-no"> | 下一页 &gt;</span>
</c:when><c:otherwise>
	 | <a href="${link}${symbol}pager.currentPage=${pager.currentPage+1}" class="a-togo">下一页 &gt;</a>
</c:otherwise></c:choose>
</p>
</c:when><c:otherwise>
	<p class="page-change">第1页，共1页    <span class="a-no">&lt; 上一页</span> | <span class="a-no">下一页 &gt;</span></p>
</c:otherwise></c:choose>
</div>